package com.gxa.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.StringReader;
import java.util.Date;

/**
* @description: TODO
* @author JZ
* @date 2022/9/7 10:35
* @version 1.0
*/
@ApiModel("车辆实体类")
public class Car {
    @ApiModelProperty("车主id")
    private int ownerId;
    @ApiModelProperty("车主姓名")
    private String ownerName;
    @ApiModelProperty("车主单位")
    private String ownerCompany;
    @ApiModelProperty("车主所属楼宇")
    private String ownerBuilding;
    @ApiModelProperty("车主所属房间号")
    private String ownerRoomName;
    @ApiModelProperty("车主电话")
    private String ownerPhone;
    @ApiModelProperty("车主车牌号")
    private String carNumber;
    @ApiModelProperty("车辆类型")
    private String carType;
    @ApiModelProperty("汽车型号")
    private String carVersion;
    @ApiModelProperty("车辆开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startTime;
    @ApiModelProperty("车辆结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getOwnerCompany() {
        return ownerCompany;
    }

    public void setOwnerCompany(String ownerCompany) {
        this.ownerCompany = ownerCompany;
    }

    public String getOwnerBuilding() {
        return ownerBuilding;
    }

    public void setOwnerBuilding(String ownerBuilding) {
        this.ownerBuilding = ownerBuilding;
    }

    public String getOwnerRoomName() {
        return ownerRoomName;
    }

    public void setOwnerRoomName(String ownerRoomName) {
        this.ownerRoomName = ownerRoomName;
    }

    public String getOwnerPhone() {
        return ownerPhone;
    }

    public void setOwnerPhone(String ownerPhone) {
        this.ownerPhone = ownerPhone;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getCarType() {
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }

    public String getCarVersion() {
        return carVersion;
    }

    public void setCarVersion(String carVersion) {
        this.carVersion = carVersion;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public int getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(int ownerId) {
        this.ownerId = ownerId;
    }

    @Override
    public String toString() {
        return "Car{" +
                "ownerId=" + ownerId +
                ", ownerName='" + ownerName + '\'' +
                ", ownerCompany='" + ownerCompany + '\'' +
                ", ownerBuilding='" + ownerBuilding + '\'' +
                ", ownerRoomName='" + ownerRoomName + '\'' +
                ", ownerPhone='" + ownerPhone + '\'' +
                ", carNumber='" + carNumber + '\'' +
                ", carType='" + carType + '\'' +
                ", carVersion='" + carVersion + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }
}
